Release 10.1A: OpenEdge Reporting:
Report Builder Deployment
Identifying the default printer
You can identify the current default printer and port for MS-Windows from the Progress 4GL using the
aderb/_prdef.pprocedure. This procedure is useful for assigning printers at run time.Use the following command in the Progress 4GL application:
The following list describes the arguments for the
_prdef.pprocedure:
printer-nameThe character variable that will receive the name of the printer.
port-nameThe character variable that will receive the name of the port.
successThe logical variable that gets assigned a TRUE value (yes) if the
_prdef.pprocedure returns a string of zero or more characters and a FALSE value if no string is returned.For example, run the
defprint.pprocedure:
The commented numbers correspond to the following step-by-step descriptions:
- Define the variables that will display the printer name and port name. Also define a logical variable that will test whether the printer information is available. If the procedure returns a string,
_prdef.psets the variable to True; if no string is returned,_prdef.psets the variable to False.- Call the
_prdef.pprocedure and specify the printer, port, and logical variables.- Test the value in the
successvariable, then display the appropriate information.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |